package com.mediatecture.flex.component.CustomStringConverter
{
	import mx.collections.ArrayCollection;

	public class CustomStringConverter
	{
		public function CustomStringConverter()
		{
			throw new Error("HTMLStringConverter is a Singleton");
		}
		
		public static function convertStringToArrayCollection(stringToBeConverted:String):ArrayCollection
		{
			var result:ArrayCollection = new ArrayCollection();
			var item:String = "";
			for each(var char:String in stringToBeConverted.split(""))
			{
				if(char == ",")
				{
					result.addItem(item);
					item = "";
				}
				else
				{
					item += char;
				}
			}
			
			return result;
			
		}
	}
}